<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var num = prompt('请输入一个数');
        if (num / 2 && num % 0) {
            alert(num + '是偶数');
        } else {
            alert(num + '是奇数');
        }
    </script>
</head>
<body>
    
</body>
</html>